package com.qtenv.datasync.service.controller;


import com.qtenv.datasync.base.Result;
import com.qtenv.datasync.service.service.GisLayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * GIS图层 前端控制器
 * </p>
 *
 * @author CBL
 * @since 2022-07-14
 */
@RestController
@RequestMapping("/layer")
public class GisLayerController {
    @Autowired
    private GisLayerService gisLayerService;

    @GetMapping("/getAllLayers")
    public Result<?> getGisLayerList(@RequestParam("tenantId") String tenantId) {
        return Result.ok(gisLayerService.findByTenantId(tenantId));
    }
}
